package com.dexgdx.game.util.trajectory.node;

import com.dexgdx.game.constants.EMoveDirection;
import com.dexgdx.game.util.trajectory.Trajectory;


public class SouthEastTrajectoryNode extends TrajectoryNode {

	@Override
	public TrajectoryNode initalizeFrom(Trajectory trajectory) {
		x = trajectory.getDirectionSpeed();
		y = trajectory.getDirectionSpeed();
		direction = EMoveDirection.SOUTH_EAST;
		return this;
	}
	
	@Override
	public TrajectoryNode clone() {
		SouthEastTrajectoryNode trajectory = new SouthEastTrajectoryNode();
		trajectory.setFromPoint(this);
		return trajectory;
	}
}
